import request from '@/utils/request'

const submit = {
  list(params){
    return request.get("/bzh/standard/approvalList",{params})
  },
  myList(params){
    return request.get("/bzh/standard/myApprovalList",{params})
  },
  detail(id){
    return request.get(`/bzh/submitApproval/detail/${id}`)
  },
  add(data){
    return request.post("/bzh/submitApproval/add",data)
  },
  update(data){
    return request.post("/bzh/submitApproval/update",data)
  },
  updateBase(data){
    return request.post("/bzh/submitApproval/updateBase",data)
  },
  submit(data){
    return request.post("/bzh/submitApproval/submit",data)
  },
  getBySuggestId(id){
    return request.get(`/bzh/submitApproval/getByLocalId/${id}`);
  }
}
export default submit
